package com.pet.server.po;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 活动
 * @author Administrator
 *
 */
@Entity
@Table(name = "campaign")
public class Campaign implements java.io.Serializable {

	// Fields

	private Integer id;
	private String clickType;
	private String imgUrl;
	private Integer seq;
	private String clickUrl;
	private String playType;
	private String text;
	private String target;
	private String param;
	private String state;
	private Double tuiPrice;
	private Integer productId;
	

	// Constructors

	/** default constructor */
	public Campaign() {
	}

	
	
	public Campaign(Integer id, String clickType, String imgUrl, Integer seq,
			String clickUrl, String playType, String text, String target,
			String param,Double tuiPrice) {
		super();
		this.id = id;
		this.clickType = clickType;
		this.imgUrl = imgUrl;
		this.seq = seq;
		this.clickUrl = clickUrl;
		this.playType = playType;
		this.text = text;
		this.target = target;
		this.param = param;
		this.tuiPrice = tuiPrice;
	}



	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "click_type", length =8)
	public String getClickType() {
		return clickType;
	}

	public void setClickType(String clickType) {
		this.clickType = clickType;
	}

	@Column(name = "img_url", length =256)
	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	@Column(name = "seq", length =11)
	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	@Column(name = "click_url", length = 512)
	public String getClickUrl() {
		return clickUrl;
	}

	public void setClickUrl(String clickUrl) {
		this.clickUrl = clickUrl;
	}

	@Column(name = "play_type", length = 512)
	public String getPlayType() {
		return playType;
	}

	public void setPlayType(String playType) {
		this.playType = playType;
	}

	@Column(name = "text", length = 64)
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Column(name = "target", length =64)
	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	@Column(name = "param", length = 512)
	public String getParam() {
		return param;
	}
	/**
	 * @param param the param to set
	 */
	public void setParam(String param) {
		this.param = param;
	}

	@Column(name = "state", length = 10)
	public String getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}


	@Column(name = "tui_price", length = 10)
	public Double getTuiPrice() {
		return tuiPrice;
	}



	public void setTuiPrice(Double tuiPrice) {
		this.tuiPrice = tuiPrice;
	}


	@Column(name = "product_id", length = 10)
	public Integer getProductId() {
		return productId;
	}



	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	

	


	


	
	
	
	
	
	
}